<template>
	<view>
		<view class="block">
			<view class="userImg">
				<u-image shape="circle" width="120rpx" height="120rpx" :src="IMAGE_URL+message.avatar" mode="aspectFill" />
			</view>
			<view class="block_title">
				<image v-if="message.country==0" style="width: 50rpx;height: 36rpx;margin-bottom: 10rpx;" src="@/static/homePage/loginIcon2.png" mode=""></image>
				<image v-if="message.country==1" style="width: 50rpx;height: 36rpx;margin-bottom: 10rpx;" src="@/static/homePage/loginIcon1.png" mode=""></image>
				<view class="js_name">{{lang=='zh'?message.identity_name:message.identity_name_ru}}</view>
			</view>
			<view class="block_company">{{lang=='zh'?message.username:message.username_ru}}</view>
			<view class="block_address">{{message.area_id?(lang=='zh'?message.area_id.mergename:message.area_id.mergename_ru):'-'}}</view>
			<view class="block_address_detail">
				<!-- <image 
				style="width: 27rpx;height: 27rpx;" 
				src="@/static/homePage/20241022114841.png" />
				<view class="address_detail">详细地址</view> -->
			</view>
			<view class="block_introduce">
				{{lang=='zh'?(message.main_product?message.main_product:$t('暂无信息')):(message.main_product_ru?message.main_product_ru:$t('暂无信息'))}}
			</view>
		</view>

	</view>
</template>

<script>
	import {
		IMAGE_URL,
		HTTP_IMG_UTL
	} from '@/config/app';
	export default {
		props: ['message','lang'],
		data() {
			return {
				IMAGE_URL,
				HTTP_IMG_UTL
			}
		}
	}
</script>

<style scoped>
	.js_name{
		margin-left: 10rpx;
		 width: 330rpx;
		 height: 50rpx;
		 font-weight: 700;
		 font-size: 30rpx;
		 color: #3D3D3D;
		 text-overflow: ellipsis;
		     overflow: hidden;
		     word-break: break-all;
		     white-space: nowrap;
	}
	.block_introduce{
		padding: 15rpx;
		font-weight: 400;
		font-size: 24rpx;
		color: #999999;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-top: 30rpx;
		width: 630rpx;
		min-height: 177rpx;
		background: #F4F5F7;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	
		
		
	}
	.address_detail{
		font-weight: 400;
		font-size: 24rpx;
		color: #B3B3B3;
		width: 600rpx;
		margin-left: 13rpx;
	}
	.block_address_detail{
		width: 600rpx;
		overflow: hidden;
		word-break: break-all;
		white-space: nowrap;
		display: flex;
		align-items: center;
		margin-top: 11rpx;
	}
	.block_address{
		/* overflow: hidden;
		word-break: break-all;
		white-space: nowrap; */
		width: 100%;
		margin-top: 10rpx;
		font-weight: 400;
		font-size: 24rpx;
		color: #B3B3B3;
	}
	.block_company{
		margin-top: 42rpx;
		font-weight: 500;
		font-size: 30rpx;
		color: #3D3D3D;
		width: 100%;
	/* 	text-overflow: ellipsis;
		overflow: hidden;
		word-break: break-all;
		white-space: nowrap; */
	}
	.block_title {
		width: 450rpx;
		margin-left: 154rpx;
		font-weight: 700;
		font-size: 30rpx;
		color: #3D3D3D;
		text-overflow: ellipsis;
		overflow: hidden;
		word-break: break-all;
		white-space: nowrap;
		display: flex;
		align-items: center;
	}

	.img {
		width: 128rpx;
		height: 128rpx;
		border-radius: 128rpx;
		background-color: aqua;
		z-index: 999;
	}

	.userImg {
		width: 140rpx;
		height: 140rpx;
		border-radius: 140rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: #FFFFFF;
		position: absolute;
		top: -64rpx;
		left: 32rpx;
	}

	.block {
		width: 690rpx;
		min-height: 420rpx;
		background-color: #FFFFFF;
		border-radius: 12rpx;
		margin-top: 64rpx;
		position: relative;
		margin-top: -50rpx;
		padding: 20rpx 30rpx 20rpx 30rpx;
	}
</style>